package com.xuecheng.base.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 通用分页查询
 * @FileName: PageParams
 * @Author: buxianxian
 * @date: 2024-01-22
 **/
@Data
@ToString
public class PageParams {
    /**
     * 当前页码
     */
    @ApiModelProperty("当前页码")
    private Long pageNo = 1L;

    /**
     * 每页记录数默认值
     */
    @ApiModelProperty("每页记录数默认值")
    private Long pageSize =30L;

    public PageParams(){

    }

    public PageParams(long pageNo,long pageSize){
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

}
